package com.jyx.cloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author jyx
 * @version 1.0
 * @email jiangyongxing@myzczk.com
 * @company www.myzczk.com
 * @create-time 2020/5/27 16:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    private Integer code;
    private String message;
    private T data;

    public CommonResult(Integer code, String message){
        this(code,message,null);
    }
}
